<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDrawlotsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('drawlots', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('apply_id')->comment('报名抽签id');
            $table->integer('user_id')->comment('人员id');
            $table->integer('user_level')->comment('人员档位');
            $table->integer('round')->comment('场次');
            $table->integer('group')->comment('抽签结果');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('drawlots');
    }
}
